package com.howtoplay.Message;


import com.dyuproject.protostuff.ByteString;

import java.io.Serializable;

public class BaseMessage implements Serializable{
    private String serverUri;
    private String clientUri;
    private boolean success;
    private ByteString content;

    public BaseMessage() {
    }

    public BaseMessage(String serverUri, String clientUri, boolean success, ByteString content) {
        this.serverUri = serverUri;
        this.clientUri = clientUri;
        this.success = success;
        this.content = content;
    }

    public String getServerUri() {
        return serverUri;
    }

    public void setServerUri(String serverUri) {
        this.serverUri = serverUri;
    }

    public String getClientUri() {
        return clientUri;
    }

    public void setClientUri(String clientUri) {
        this.clientUri = clientUri;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public ByteString getContent() {
        return content;
    }

    public void setContent(ByteString content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "BaseMessage{" +
                "serverUri='" + serverUri + '\'' +
                ", clientUri='" + clientUri + '\'' +
                ", success=" + success +
                ", content=" + content +
                '}';
    }
}
